package com.kanshu.basictest.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public final class TimeUtils {


    public static String getCurrentTimeFormat(String pattern) {
        long time = System.currentTimeMillis();
        SimpleDateFormat sdf = new SimpleDateFormat(pattern, Locale.CHINA);
        return sdf.format(new Date(time));
    }

}
